package com.cry.todo.service.impl;

import java.util.ArrayList;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.cry.todo.dao.UserDao;
import com.cry.todo.domain.User;
import com.cry.todo.service.UserService;

@Repository
@Transactional
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;
	
	@Override
	public ArrayList<User> loadAll() {
		return userDao.loadAll();
	}

	@Override
	public User load(int id) {
		return (User) userDao.load(id);
	}
}
